# coding=utf-8

def is_float(num) :
    try :
        num = float(str(num))
        return isinstance(num, float)
    except :
        return False


def is_positive_int(num) :
    try :
        num = int(str(num))

        if isinstance(num, int) :
            return int(num) > 0
        else :
            return False
    except :
        return False

def is_positive_int_zero(num) :
    try :
        num = int(str(num))

        if isinstance(num, int) :
            return int(num) >= 0
        else :
            return False
    except :
        return False


def is_negative_int(num) :
    try :
        num = int(str(num))

        if isinstance(num, int) :
            return int(num) < 0
        else :
            return False
    except :
        return False


def is_int(num) :
    try :
        num = int(str(num))
        return isinstance(num, int)
    except :
        return False